<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>this关键字</title>
</head>
<body>
<script>
    const o = {
        name:'wallce',
        speak(){
             return `my name is ${this.name}`;
            //return 'my name is ' + this.name;
        }
    }
    console.log(o.speak());
    const speak = o.speak;
    console.log(speak());
</script>
</body>
</html>